<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE HTML>
<html>
<head>
<%@ include file="/WEB-INF/jsp/admin/inc/taglibs.jsp"%>
	<%@ include file="/WEB-INF/jsp/admin/inc/meta.jsp"%>
     <script type="text/javascript">
            /* <![CDATA[ */
            jQuery(function(){
                jQuery("#name").validate({
                    expression: "if (VAL) return true; else return false;",
                    message: "分类名称不能为空"
                });   
                jQuery('#item').validated(function(){
					//alert("通过验证");
					edit_item('${entity}',approot+'/admin/${entity}/list/menu/${online_goodscategory_id}/0/0');
				});
            });
            /* ]]> */
        </script>
</head>  
  <body style="background:#E8F5FE; padding:15px 18px;" class="scroll_r">
<div id="right_w"><p>当前位置：系统管理 >>修改分类</p></div>

<form method="post" action="" id="item">
  <table border="0" cellpadding="0" cellspacing="1" width="92%" align="center" class="tab_l">
    <tr>
      <td><b>请按要求填写：</b></td>
      <td align="right">带<span style="color:#ff0000;">*</span>为必填</td>
    </tr>
  </table>
  <table border="0" cellpadding="0" cellspacing="1" width="92%" align="center" id="add_tab">
  <tr>
   <th width="20%"><span style="color:#ff0000; margin:0;">*</span>分类名称：</th>
   <td width="80%"><input type="text" id=name name="name" value="${item.name}"></td>
  </tr>
  <tr>
   <th width="20%"><span style="color:#ff0000; margin:0;">*</span>关键字：</th>
   <td width="80%"><input type="text" id="keywords" name="keywords" value="${item.keywords}"></td>
  </tr>
 </table>
  <p id="tab_but">
   <input type="hidden" name="id" value="${item.id}"/>
   <input type="submit" value="提 交">
   <input type="button" value="返回" onclick="history.go(-1)">
   </p>
</form>
</body>
</html>
